<template>
	<view class="my-search-container" @click="navigateToPage">
		<view class="my-search-box">
			<uni-icons type="search" size="18" />
			<text class="placeholder">搜索</text>
		</view>
	</view>
</template>

<script>
	import uniIcons from '@dcloudio/uni-ui/lib/uni-icons/uni-icons.vue';
	export default {
		name: "my-search",
		data() {
			return {}; // 可选，若不需要可以省略
		},
		methods: {
			navigateToPage() {
				console.log('搜索界面，没写，自己脑补')
				uni.navigateTo({
					url: '/pages/my-search-page/my-search-page'
				});
			}
		}
	}
</script>

<style lang="scss">
.my-search-container {
	height: 50px;
	background-color: #f8df72;
	display: flex;
	align-items: center; // 修正
	padding: 0 10px;

	.my-search-box {
		height: 54rpx;
		background-color: #FFFFFF;
		width: 100%;
		border-radius: 18px;
		display: flex;
		justify-content: center;
		align-items: center;

		.placeholder { // 修正
			font-size: 15px;
			margin-left: 5px;
		}
	}
}
</style>
